package com.oceansoft.core.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.oceansoft.core.domain.SysUser;

/**
 * 
 * @author zhang
 *
 */
public class PersonMapper implements RowMapper<SysUser>{

	@Override
	public SysUser mapRow(ResultSet rs, int rowIndex) throws SQLException {
		SysUser sysUser = new SysUser();
		sysUser.setName(rs.getString("name"));
		sysUser.setDbId(rs.getLong("dbId"));
		return sysUser;
	}

}
